<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="oldalbum.db.liquibase.production">

    <!-- Copyright 2020 Steinar Bang                                                     -->
    <!--                                                                                 -->
    <!-- Licensed under the Apache License, Version 2.0 (the "License");                 -->
    <!-- you may not use this file except in compliance with the License.                -->
    <!-- You may obtain a copy of the License at                                         -->
    <!--   http://www.apache.org/licenses/LICENSE-2.0                                    -->
    <!-- Unless required by applicable law or agreed to in writing,                      -->
    <!-- software distributed under the License is distributed on an "AS IS" BASIS,      -->
    <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.        -->
    <!-- See the License for the specific language governing permissions and limitations -->
    <!-- under the License.                                                              -->

    <feature name="${karaf-feature-name}">
        <feature>scr</feature>
        <feature>oldalbum-db-liquibase</feature>
    </feature>
    <feature name="oldalbum-db-production" description="oldalbum production DataSource" version="${project.version}">
        <config name="org.ops4j.datasource-oldalbum-production">
            osgi.jdbc.driver.name=PostgreSQL JDBC Driver
            dataSourceName=jdbc/oldalbum
            url=jdbc:postgresql:///oldalbum
            user=karaf
            password=karaf
            ops4j.preHook=oldalbum
        </config>
        <capability>
            osgi.service;objectClass=javax.sql.DataSource;effective:=active;osgi.jndi.service.name=jdbc/oldalbum
        </capability>
        <feature>${karaf-feature-name}</feature>
        <feature>pax-jdbc-config</feature>
    </feature>
</features>
